from django import forms
from .models import *
class LoginFrom(forms.Form):
    sname = forms.CharField(max_length=30,label='用户名')
    pwd = forms.CharField(label='密码',widget=forms.PasswordInput)


class ClazzFrom(forms.ModelForm):
    class Meta:
        model=Clazz
        #显示的字段
        fields = ('cname',)


class StuFrom(forms.ModelForm):
    class Meta:
        model = Student
        fields = ('sname',)